<div class="managedfunds form">
<?php
    if($this->Session->read('login')=='yes')
    {
        echo $this->Form->create('Managedfund'); ?>
	    <fieldset>
		    <legend><?php echo __('Edit Managed Funds'); ?></legend>
	    <?php
	    	echo $this->Form->input('FundsID', array('label' => 'Fund ID', 'disabled' => 'true')); //readonly
		    echo $this->Form->input('FundName', array('label' => 'Fund Name', 'disabled' => 'true'));  //readonly
		    echo $this->Form->input('APIRCode', array('label' => 'APIR Code (eg. AAA0001AU)', 'type' => 'select', 'options' => $apir, 'disabled' => 'true' ));
		    echo $this->Form->input('Date', array('id'=>'datepicker', 'label' => 'Date of Input', 'type' => 'text', 'disabled' => 'true'));  //readonly
		    echo $this->Form->input('Value', array('label' => 'Value', 'type' => 'text'));
		    echo $this->Form->input('Weighting', array('label' => 'Weighting (%)', 'type' => 'text'));		
	    ?>
	    </fieldset>
        <?php echo $this->Form->end(__('Submit')); ?>
        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Managedfund.FundsID')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Managedfund.FundsID'))); ?>
        </div>

<?php
}else
{
    ?>
    <p>You can't view the content in this page</p>
<?php
}
?>